package com.hz.ruoyifarmbase.baseinfo.controller;

import com.hz.ruoyifarmbase.baseinfo.service.AgrFistPageCountService;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.common.security.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: zjk
 * @Date: 2025/3/15 9:02
 * @Description: TODO
 */
@RestController
@RequestMapping("/firstPage")
@CrossOrigin
public class AgrFistPageCountBaseController {
    @Autowired
    private AgrFistPageCountService agrFistPageCountService;
    @RequiresPermissions("baseinfo:firstPage:list")
    @GetMapping("/list")
    public AjaxResult getList(){
        return AjaxResult.success(agrFistPageCountService.getList());
    }
}
